<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="Header.jsp"/>
<title>Public Holidays</title>
</head>
<body>
<jsp:include page="AdminNav.jsp"/>
<script>
$(document).ready(function() {
	oTable = $('#example').dataTable({
		"bJQueryUI": true,
		"sPaginationType": "full_numbers"
	});
} );

</script>
<h2>Public Holidays </h2>
<div class="col-md-10 panel panel-success">
<table id="example" style="text-align: center;" cellpadding="0" cellspacing="0" class="table table-hover" >
<thead>
<tr>
<td>Date</td>
<td>Event Name</td>
<td>User</td>
<td>Edit/Delete</td>
</thead>
<tbody>
<c:forEach var="publicHoliday" items="${publicHolidayList}">
<tr>
<td>${publicHoliday.date}</td>
<td>${publicHoliday.name}</td>
<td>${publicHoliday.userId}</td>

<td>
<a href="${pageContext.request.contextPath}/Publicholiday/edit/${publicHoliday.publicHolidayid}.html">Edit/</a>
<a href="${pageContext.request.contextPath}/Publicholiday/delete/${publicHoliday.publicHolidayid}.html">Delete</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<jsp:include page="footer.jsp"/>
</body>
</html>